
---@class CustomTailAfterGoal:GoalBase
CustomTailAfterGoal = class(GoalBase)

function CustomTailAfterGoal:GetLabel()
    return ECustomGoalLabel.Tail_after;
end

function CustomTailAfterGoal:GetPriority()
    return 7;
end

function CustomTailAfterGoal:InitActiveCondition()
    local state = State.new()
    state:Set(ECustomStateKey.Can_move,true);
    state:Set(ECustomStateKey.Find_target,true);
    state:Set(ECustomStateKey.NearTarget,false);
    return state;
end

function CustomTailAfterGoal:InitEffects()
    local state = State.new()
    state:Set(ECustomStateKey.NearTarget,true);
    return state;
end